package top.zackyoung.bbs.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.zackyoung.bbs.entity.Forum;

import java.util.List;

@Mapper
@Repository
public interface ForumMapper {
    int insertForum(Forum forum);
    List<Forum> queryForum(@Param("tagId") Integer tagId, @Param("id") Integer id, @Param("page") Integer page, @Param("count") Integer count);
    int queryForumCount(@Param("tagId") Integer tagId);

}